﻿Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports System.Threading
Imports Logging

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Service
    Inherits System.Web.Services.WebService

    Private logger As Logger = New Logger("C:\\netwerkscanner.log")


#Region "Addstuff"
    <WebMethod()> _
    Public Sub AddHosts(ByVal ssid As String, ByVal ip As String, ByVal mac As String, ByVal datum As String)
        Dim Netwerk As New DB
        Netwerk.AddUser(ssid, ip, mac, datum)
    End Sub
    <WebMethod()> _
    Public Sub AddAccesPoints(ByVal ssid As String, ByVal mac As String)
        Dim Netwerk As New DB
        Netwerk.AddAccesPoints(ssid, mac)
    End Sub
#End Region
End Class